// RUN: llvm-mc -triple i386-unknown-unknown --show-encoding %s | FileCheck %s

// CHECK: llwpcb %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x12,0xc0]
llwpcb %eax

// CHECK: lwpins $0, -485498096(%edx,%eax,4), %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x84,0x82,0x10,0xe3,0x0f,0xe3,0x00,0x00,0x00,0x00]
lwpins $0, -485498096(%edx,%eax,4), %edx

// CHECK: lwpins $0, 485498096(%edx,%eax,4), %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x84,0x82,0xf0,0x1c,0xf0,0x1c,0x00,0x00,0x00,0x00]
lwpins $0, 485498096(%edx,%eax,4), %edx

// CHECK: lwpins $0, 485498096(%edx), %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x82,0xf0,0x1c,0xf0,0x1c,0x00,0x00,0x00,0x00]
lwpins $0, 485498096(%edx), %edx

// CHECK: lwpins $0, 485498096, %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x05,0xf0,0x1c,0xf0,0x1c,0x00,0x00,0x00,0x00]
lwpins $0, 485498096, %edx

// CHECK: lwpins $0, 64(%edx,%eax), %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x44,0x02,0x40,0x00,0x00,0x00,0x00]
lwpins $0, 64(%edx,%eax), %edx

// CHECK: lwpins $0, %eax, %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0xc0,0x00,0x00,0x00,0x00]
lwpins $0, %eax, %edx

// CHECK: lwpins $0, (%edx), %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x02,0x00,0x00,0x00,0x00]
lwpins $0, (%edx), %edx

// CHECK: lwpval $0, -485498096(%edx,%eax,4), %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x8c,0x82,0x10,0xe3,0x0f,0xe3,0x00,0x00,0x00,0x00]
lwpval $0, -485498096(%edx,%eax,4), %edx

// CHECK: lwpval $0, 485498096(%edx,%eax,4), %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x8c,0x82,0xf0,0x1c,0xf0,0x1c,0x00,0x00,0x00,0x00]
lwpval $0, 485498096(%edx,%eax,4), %edx

// CHECK: lwpval $0, 485498096(%edx), %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x8a,0xf0,0x1c,0xf0,0x1c,0x00,0x00,0x00,0x00]
lwpval $0, 485498096(%edx), %edx

// CHECK: lwpval $0, 485498096, %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x0d,0xf0,0x1c,0xf0,0x1c,0x00,0x00,0x00,0x00]
lwpval $0, 485498096, %edx

// CHECK: lwpval $0, 64(%edx,%eax), %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x4c,0x02,0x40,0x00,0x00,0x00,0x00]
lwpval $0, 64(%edx,%eax), %edx

// CHECK: lwpval $0, %eax, %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0xc8,0x00,0x00,0x00,0x00]
lwpval $0, %eax, %edx

// CHECK: lwpval $0, (%edx), %edx
// CHECK: encoding: [0x8f,0xea,0x68,0x12,0x0a,0x00,0x00,0x00,0x00]
lwpval $0, (%edx), %edx

// CHECK: slwpcb %eax
// CHECK: encoding: [0x8f,0xe9,0x78,0x12,0xc8]
slwpcb %eax
